package cn.liumouren.tool.pac.entity;

import cn.liumouren.tool.pac.entity.rely.Page;
import cn.liumouren.tool.pac.entity.rely.Where;

import java.util.List;
import java.util.Map;

/** 查询
 * @author Daniel Liu
 */
public class Query implements Mode{
    private List<String> select;
    private Where where;
    private Page page = new Page();
    private Map<String, String> order;

    public List<String> getSelect() {
        return select;
    }

    public void setSelect(List<String> select) {
        this.select = select;
    }

    public Where getWhere() {
        return where;
    }

    public void setWhere(Where where) {
        this.where = where;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public Map<String, String> getOrder() {
        return order;
    }

    public void setOrder(Map<String, String> order) {
        this.order = order;
    }

    @Override
    public String getMode() {
        return Mode.QUERY;
    }
}
